﻿using Architecture.Repository.Interface.Traceability;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Traceability.Domain.DeepProcessingDomain;
using Traceability.Domain.SupplierDomain;

namespace Architecture.Repository.Impl.Traceability
{
    public class RawMaterialRepository : BaseRepository<RawMaterial>, IRawMaterialRepository
    {
        public RawMaterialRepository(EFCoreContext context) : base(context)
        {

        }

        public async Task<int> AddRawMaterial(RawMaterial rawMaterial)
        {
            return await base.AddAsync(rawMaterial);
        }

        public async Task<List<RawMaterial>> GetRawMaterialList()
        {
            return await base.GetAllAsync();
        }

        public async Task<int> UpdateRawMaterial(RawMaterial rawMaterial)
        {
            return await base.UpdateAsync(rawMaterial);
        }

        public async Task<RawMaterial> BackInfoRawMaterialg(int rawMaterialId)
        {
            return await base.GetModelAsync(rawMaterialId);
        }

    }
}
